#ifndef _CAMERA_H_
#define _CAMERA_H_

#include <cstring>
#include <iostream>
#include <thread>

class Camera {
private:
    bool running = false;
    bool v4l2cap = false;
    std::thread handle;
    std::string url;
    std::string path;

public:
    Camera();
    Camera(std::string url);
    ~Camera();
    void set(std::string url);
    void thread();
    void start();
    void stop();
};

#endif